{% extends 'base.html' %}
{% load static %}

{% block title %}密码修改成功 - 自动化测试平台{% endblock %}

{% block extra_css %}
<style>
    .success-container {
        max-width: 600px;
        margin: 0 auto;
        background: var(--card-bg);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        padding: 2.5rem;
        text-align: center;
    }
    
    .success-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 80px;
        height: 80px;
        background-color: var(--success-light);
        color: var(--success);
        border-radius: 50%;
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .success-title {
        font-size: 1.75rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 1rem;
    }
    
    .success-message {
        font-size: 1.125rem;
        color: var(--text-secondary);
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .button-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn-primary {
        background-color: var(--primary);
        color: white;
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: var(--radius-md);
        font-weight: 500;
        cursor: pointer;
        transition: background-color var(--transition-fast);
        text-decoration: none;
    }
    
    .btn-primary:hover {
        background-color: var(--primary-hover);
    }
    
    .btn-secondary {
        background-color: transparent;
        color: var(--text-secondary);
        border: 1px solid var(--border);
        padding: 0.75rem 1.5rem;
        border-radius: var(--radius-md);
        font-weight: 500;
        cursor: pointer;
        transition: all var(--transition-fast);
        text-decoration: none;
    }
    
    .btn-secondary:hover {
        background-color: var(--border-light);
        color: var(--text-primary);
    }
</style>
{% endblock %}

{% block content %}
<div class="success-container">
    <div class="success-icon">
        <i class="fas fa-check"></i>
    </div>
    
    <h2 class="success-title">密码修改成功</h2>
    
    <p class="success-message">
        您的密码已成功修改。新的密码现在可以用于登录您的账户。
    </p>
    
    <div class="button-group">
        <a href="{% url 'accounts:profile' %}" class="btn-primary">返回个人设置</a>
        <a href="{% url 'portal:home' %}" class="btn-secondary">返回首页</a>
    </div>
</div>
{% endblock %}